﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Quizz.Service.Services;
using Quizz.DataRepository.Models;

namespace Quizz.QuizzProjectService
{
    public partial class QuizzProjectService
    {
        public Subject SubjectGetById(long id)
        {
            using (var service = new SubjectService())
            {
                return service.GetById(id);
            }
        }

        public IList<Subject> SubjectGetAll()
        {
            using (var service = new SubjectService())
            {
                return service.GetAll();
            }
        }
    }
}